package com.ruoyi.system.api.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import java.util.Date;

/**
 * 服务评价对象 car_evaluate
 * 
 * @author ruoyi
 * @date 2024-09-09
 */
public class CarEvaluate extends BaseEntity
{

    private static final long serialVersionUID = 1L;

    /** id */
    private Long evaluateId;

    /** 关联到用户表  表示评价人ID */
    private Long userId;

    /** 与商家表关联，表示商家id */
    private Long merchantId;

    /** 关联到服务表,表示被评价的服务ID */
    private Long serviceId;

    /** 与订单表关联 */
    @Excel(name = "与订单表关联")
    private Long orderId;

    /** 评价星级，例如1-5星 */
    @Excel(name = "评价星级，例如1-5星")
    private Long rating;

    /** 图片 */
    @Excel(name = "图片")
    private String picture;

    /** 评价内容 */
    private String comment;

    /** 删除状态 */
    private Integer status;

    private CarUser carUser;

    private CarServiceDetail carServiceDetail;

    private CarOrders carOrders;

    @Excel(name = "订单编号")
    private String ordNumber;

    public String getOrdNumber() {
        return ordNumber;
    }

    public void setOrdNumber(String ordNumber) {
        this.ordNumber = ordNumber;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public void setCarUser(CarUser carUser) {
        this.carUser = carUser;
    }

    public void setCarServiceDetail(CarServiceDetail carServiceDetail) {
        this.carServiceDetail = carServiceDetail;
    }

    public void setCarOrders(CarOrders carOrders) {
        this.carOrders = carOrders;
    }

    public CarUser getCarUser() {
        return carUser;
    }

    public CarServiceDetail getCarServiceDetail() {
        return carServiceDetail;
    }

    public CarOrders getCarOrders() {
        return carOrders;
    }

    public void setEvaluateId(Long evaluateId)
    {
        this.evaluateId = evaluateId;
    }

    public Long getEvaluateId() 
    {
        return evaluateId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setMerchantId(Long merchantId) 
    {
        this.merchantId = merchantId;
    }

    public Long getMerchantId() 
    {
        return merchantId;
    }
    public void setServiceId(Long serviceId) 
    {
        this.serviceId = serviceId;
    }

    public Long getServiceId() 
    {
        return serviceId;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setRating(Long rating) 
    {
        this.rating = rating;
    }

    public Long getRating() 
    {
        return rating;
    }
    public void setPicture(String picture) 
    {
        this.picture = picture;
    }

    public String getPicture() 
    {
        return picture;
    }
    public void setComment(String comment) 
    {
        this.comment = comment;
    }

    public String getComment() 
    {
        return comment;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("evaluateId", getEvaluateId())
            .append("userId", getUserId())
            .append("merchantId", getMerchantId())
            .append("serviceId", getServiceId())
            .append("orderId", getOrderId())
            .append("rating", getRating())
            .append("picture", getPicture())
            .append("comment", getComment())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("status", getStatus())
            .toString();
    }
}
